import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useLayoutSettingStore = defineStore('setting', () => {
  // 用于控制折叠菜单宽度变量
  const isFold = ref<boolean>(false)
  //用于是否刷新
  const isSefsh = ref<boolean>(false)

  // 修改 isFold 变量
  function changeIsFold() {
    isFold.value = !isFold.value
  }
  // 修改isSefsh 变量
  function changeIsSefsh() {
    isSefsh.value = !isSefsh.value
  }
  return { isFold, isSefsh, changeIsFold, changeIsSefsh }
})
